<div class="news-page">
	<div class="news-list property">
		{if $reality.main_image}
			{image src=$reality.mainImage width="611"}
		{/if}
		
		<h3>{$reality.title}</h3>
		{if $reality.street || $reality.fk_city_id}<span class="address">{$reality.street}{if $reality.fk_city_id}{if $reality.street}, {/if}{$reality.city.title}{/if}</span>{/if}
		
		{if $reality.bodytext}
			{$reality.bodytext}
		{/if}
		{if $reality.price}<span class="price">Cena: {$reality.price|format_number} &euro;</span>{/if}
	</div>
	{if $reality.propertyList}
		<!--DETAILS AND FEATURES-->
		<div class="details-features clear">
			<div class="features clear">
				<h4>Vlastnosti</h4>
				{if $reality.leftProperties}
					<ul>
						{foreach from=$reality.leftProperties item='property'}
							<li>{$property.title}</li>
						{/foreach}
					</ul>
				{/if}
				{if $reality.rightProperties}
					<ul>
						{foreach from=$reality.rightProperties item='property'}
							<li>{$property.title}</li>
						{/foreach}
					</ul>
				{/if}
			</div>
		</div>
	{/if}
	{*<!--SHARE SOCIABLE-->	
	<div class="share clear">
		<ul class="actions">
			<li><a href="#"><img src="fileadmin/templates/img/icons/email.png" alt="Poslať priateľovi" title="Poslať priateľovi" /></a></li>
			<li><a href="#"><img src="fileadmin/templates/img/icons/printer.png" alt="Tlačiť" title="Tlačiť" /></a></li>
			<li><a href="#"><img src="fileadmin/templates/img/icons/pdf.png" alt="Stiahnuť PDF" title="Stiahnuť PDF" /></a></li>
		</ul>
	</div>	*}
	{if $reality.imageList}
		<!--PROPERTY MEDIA-->
		<div class="gallery four-cols">
			<h4>Fotky</h4>
			<ul class="clear">
				{foreach from=$reality.imageList item='image' name='gallery'}
					<li class="zoom{if $smarty.foreach.gallery.index mod 4 == 3} last{/if}">
						<a href="{$image.imagePath}" rel="gallery" title="{if $image.description}{$image.description}{else}{$image.title}{/if}">
							<span class="gall4-rollover">&nbsp;</span>
							{image src=$image.imagePath width="126" height="96"}
						</a>
					</li>
				{/foreach}				
			</ul>
		</div>
	{/if}
	{if $reality.google_map || $reality.fk_agent_id}
		<!--MAP AND AGENT-->
		<div class="map-agent clear">
			{if $reality.google_map}
				<div class="map">
					<h4>Mapa</h4>
					{$reality.google_map}
				</div>
			{/if}
			{if $reality.fk_agent_id}
				<div class="agent-profile">
					<h4>Predáva agent</h4>
					{if $reality.agent.image}
						<a href="{$reality.agent.url}" title="{$reality.agent.name}">{image src=$reality.agent.imagePath width="107" height="123" alt=$agent.name}</a>
					{/if}
					<h5><a href="{$reality.agent.url}" title="{$reality.agent.name}">{$reality.agent.name}</a></h5>
					<ul>
						{if $reality.agent.phone_office}<li><span>Kancelária:</span> {$reality.agent.phone_office}</li>{/if}
						{if $reality.agent.mobile}<li><span>Mobil:</span> {$reality.agent.mobile}</li>{/if}
						{if $reality.agent.fax}<li><span>Email:</span> {$reality.agent.fax}</li>{/if}
					</ul>
				</div>
			{/if}
		</div>
	{/if}
</div>